package com.library.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.library.domain.pojo.Book;

import java.util.Map;

/**
 * @author : 凉小天
 * @date : 2021/6/30 16:58
 */
public interface BookService extends IService<Book> {
    /**
     * 分页查询图书
     */
    Map<String ,Object> page(Page<Book> page, Book book);

    boolean lendBook(String isbn, Long readerId);

    boolean returnBook(String isbn, Long readerId);
}
